import {request} from "../utils/request";

// 获取后端请求
export function getConfig(data: any) {
  return request({
    url: "/config/queryConfigByPage",
    method: "post",
    data,
  });
}

// 根据渠道标签获取背景颜色
export function queryListBychannelTag(data: any) {
  return request({
    url: "/config/queryListBychannelTag",
    method: "post",
    data,
  });
}

// 根据key获取背景图片
export function queryValueByKey(data: any) {
  return request({
    url: "/config/queryValueByKey",
    method: "post",
    data,
  });
}

// 添加
export function configAdd(data: any) {
  return request({
    url: "/config/add",
    method: "post",
    data,
  });
}

// 编辑
export function configEdit(data: any) {
  return request({
    url: "/config/edit",
    method: "post",
    data,
  });
}

// 删除
export function configDel(data: any) {
  return request({
    url: "/config/del",
    method: "post",
    data,
  });
}